public class Constants {
    public static final String PREFS_NAME = "MyAppPrefs";
    public static final String KEY_USERNAME = "username";
    public static final String KEY_USER_ID = "userId";
    // 其他常量...
}